package com.demo.villageresidence.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tb_bidding
 */
@TableName(value ="tb_bidding")
@Data
public class Bidding implements Serializable {
    /**
     * 投标表id
     */
    @TableId(type = IdType.AUTO)
    private Integer biddingId;

    /**
     * 投标时间
     */
    private LocalDateTime biddingTime;

    /**
     * 投标价格
     */
    private BigDecimal biddingPrice;

    /**
     * 投标状态 分为“中标”和“落选”、“待处理”，初始值为“待处理”
     */
    private Integer biddingStatus;

    /**
     * 用户表id
     */
    private Integer userId;

    /**
     * 用户
     */
    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Tender tender;

    /**
     * 投标信息表id
     */
    private Integer tenderId;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}